<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/8/6
 * Time: 6:34
 */
?>
<table class="table">
    <tr>
        <td>图片号</td>
        <td>图片</td>
        <td>描述</td>
        <td>操作</td>
        <td>  </td>
    <tr>

        <?php for($i=0;$i<count($model);$i++)
        {?>
    <tr>
        <td>  <?= $model[$i]['id']?></td>
        <td> <img src="<?= $model[$i]['photos']?>" style="width:100px;height:100px;"></td>
        <td>  <?= $model[$i]['describes']?></td>
        <td><a href='http://localhost/yii/web/index.php?r=admin/deletephotos&&id=<?= $model[$i]['id']?>'>删除</a></td>
        <td><a href='http://localhost/yii/web/index.php?r=admin/findphotos&&id=<?= $model[$i]['id']?>'>修改</a></td>
    </tr>
    <?php }?>

</table>